#include <iostream>
#include <vector>

using namespace std;

int main() {
  vector<int> v{0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
  for (auto &i : v) {
    if (i != 0 && i % 2 != 0) {
      i = i * 2;
	}
  }
  for (auto i : v) {
    cout << i << " ";
  }
  cout << endl;
}